package com.alks.function.mapper.pcfactorywork;

import com.alks.entity.data.entity.PcSupplementHead;
import com.alks.function.data.dto.pcfactorywork.PcSupplementHeadDto;
import com.alks.function.data.dto.pcfactorywork.PcSupplementHeadDto2;
import com.alks.function.data.request.factorywork.PcSupplementHeadRequest;
import com.alks.function.data.request.factorywork.SupplementaryOrderRequest;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 补料总表 Mapper 接口
 * </p>
 *
 * @author ms
 * @since 2023-07-19
 */
public interface PcSupplementHeadMapper extends BaseMapper<PcSupplementHead> {

    List<PcSupplementHeadDto> listSupplementHead(@Param("requet") PcSupplementHeadRequest requet, @Param("userName") String userName, @Param("companyId") String companyId);

    /*改变退单和审核*/
//    void supFlagUpdate(Integer flag, String remark, List<String> slipNo);

    /**
     * 查询补料单资料
     * @param request
     * @return
     */
    List<PcSupplementHeadDto2> getSupplementaryOrderInfo(SupplementaryOrderRequest request);

    /**
     * 条件返回 查询补料部门
     * @return
     */
    List<String> getDutyDeptName();

    /**
     * 条件返回 查询补料类型
     * @return
     */
    List<String> getBlFlag();

}
